package com.weimob.mcloud.wechatwork.customer.export;

import com.weimob.mcloud.wechatwork.customer.service.EmployeeCustomerTagPressureTestService;
import com.weimob.mcloud.wechatwork.customer.service.user.module.bo.tag.EmployeeCustomerTagPressureTestBO;
import com.weimob.mcloud.wechatwork.customer.service.user.module.req.tag.EmployeeCustomerTagPressureTestDTO;
import com.weimob.mcloud.wechatwork.customer.service.user.service.PressureTestClient;
import com.weimob.mcloud.wechatwork.customer.service.user.utils.SoaResponseUtil;
import com.weimob.soa.common.response.SoaResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PressureTestClientImpl implements PressureTestClient {

    @Autowired
    private EmployeeCustomerTagPressureTestService employeeCustomerTagPressureTestService;
    @Override
    public SoaResponse<EmployeeCustomerTagPressureTestBO, ?> fetchCustomerEmployeeTag(EmployeeCustomerTagPressureTestDTO request) {
        return SoaResponseUtil.ok(employeeCustomerTagPressureTestService.fetchCustomerEmployeeTag(request));
    }

    @Override
    public SoaResponse<Boolean, ?> markTag(EmployeeCustomerTagPressureTestDTO request) {
        return SoaResponseUtil.ok(employeeCustomerTagPressureTestService.markTag(request));
    }
}
